<!--
  To change this template, choose Tools | Templates
  and open the template in the editor.
-->

<%@ page contentType="text/html;charset=UTF-8" %>

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="layout" content="main">
    <title>Search By Filters</title>
  </head>
  <body>
    <h3><g:message code="Select"/></h3>
       
        <p align=center>
        <g:form action="main">
      <!--<g:select name="CBPurpose" from="${type}" keys="${type}"/>-->
       Type Of Place:<g:select name="CBPurpose" from="${sType}" keys="${number}" value="${recValue}"
                               />
       
      <!--<g:select name="CBPurpose" from="${type}" keys="${type}"/>-->
       Filter By attribute:<g:select name="filter" from="${sFilter}" keys="${number}" value="${recValue2}"
                                     onchange="this.form.submit()" />
       <g:if test="${variables == '1'}">
          From: <g:select name="fArea" from="${fArea}" keys="${number}"/>
          to: <g:select name="tArea" from="${tArea}" keys="${number}"/>
          
       </g:if>
       
       <g:if test="${variables == '3'}">
          Value: <g:textField name="sValue" from="${sVal}"/>
       </g:if>
       <g:submitButton name="Buscar" value="Filtrar"/>
       
       </g:form>
         
       </p>
       <br><br><br><br>
       
       <a href="/RentADomus/" >
          <fieldset class="buttons">
                  <g:submitButton name="Back" class="back" value="Back" />
          </fieldset>
            
       </a>
       
  </body>
</html>
